﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace NASA.BeAMartian.Views.Participate
{
    public partial class Index : PhoneApplicationPage
    {
        public Index()
        {
            InitializeComponent();
        }

        private void TextBlock_ManipulationStarted(object sender, ManipulationStartedEventArgs e)
        {
            FrameworkElement fe = sender as FrameworkElement;
            NavigationService.Navigate(new Uri(fe.Tag.ToString(), UriKind.Relative));
        }

        private void Image_ManipulationStarted(object sender, ManipulationStartedEventArgs e)
        {
            this.NavigationService.Navigate(new Uri("/Views/Participate/MapRoom.xaml?x=0", UriKind.Relative));
        }

        private void Image_ManipulationStarted_1(object sender, ManipulationStartedEventArgs e)
        {
            this.NavigationService.Navigate(new Uri("/Views/Participate/MapRoom.xaml?x=1", UriKind.Relative));
        }

        private void Image_ManipulationStarted_2(object sender, ManipulationStartedEventArgs e)
        {
            this.NavigationService.Navigate(new Uri("/Views/Participate/MapRoom.xaml?x=2", UriKind.Relative));
        }
    }
}